package com.hr.builder;

import org.springframework.stereotype.Component;

import com.espirit.eap.pagelayout.FunctionButton;
import com.hr.SalaryAcctBase;
import com.hr.SalaryItemBase;
import com.hr.SalaryItemBaseBuilderSupport;

@Component
public class SalaryItemBaseBuilder extends SalaryItemBaseBuilderSupport {
	
	@Override
	public boolean init() {
		return super.setClass(SalaryItemBase.class, "Salary Item", "工资清单");
	}
	
	@Override
	protected void afterBuilderLayout() {
		super.afterBuilderLayout();
		createRelatedLayout(SalaryItemBase.class, SEARCHRELATEDRESULT, getButton(FunctionButton.PREADD), getButton(FunctionButton.DELETE));
	}

	@Override
	protected String getAcctItemClassName() {
		return SalaryAcctBase.class.getName();
	}
	
	
}
